package cn.imusic.discovery.registry;

import java.net.URI;
import java.util.Map;

public interface Registration  {
  
  /**
   * @return the service id as registered.
   */
  String getServiceId();

  /**
   * @return the hostname of the registered ServiceInstance
   */
  String getHost();

  /**
   * @return the port of the registered ServiceInstance
   */
  int getPort();

  /**
   * @return if the port of the registered ServiceInstance is https or not
   */
  boolean isSecure();

  /**
   * @return the service uri address
   */
  URI getUri();

  /**
   * @return the key value pair metadata associated with the service instance
   */
  Map<String, String> getMetadata();
}